package com.keba.lamp.tenant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.keba.basic.base.entity.Entity;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static com.keba.lamp.model.constant.Condition.LIKE;


/**
 * <p>
 * 实体类
 * 租户app配置
 * </p>
 *
 * @author twg
 * @date 2025-06-15 21:54:33
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("def_tenant_app_config")
public class DefTenantAppConfig extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 乐观锁
     */
    @TableField(value = "revision", condition = EQUAL)
    @Version
    private Integer revision;
    /**
     * 是否删除，0-未删除，1-删除
     */
    @TableField(value = "is_del", condition = EQUAL)
    private Integer isDel;
    /**
     * app标识
     */
    @TableField(value = "app_id", condition = LIKE)
    private String appId;
    /**
     * 租户id
     */
    @TableField(value = "tenant_id", condition = EQUAL)
    private Long tenantId;
    /**
     * h5/小程序标题
     */
    @TableField(value = "app_name", condition = LIKE)
    private String appName;
    /**
     * 小程序的appid
     */
    @TableField(value = "mp_app_id", condition = LIKE)
    private String mpAppId;
    /**
     * 小程序的app_secret
     */
    @TableField(value = "mp_app_secret", condition = LIKE)
    private String mpAppSecret;
    /**
     * h5启用状态;[0-禁用 1-启用]
     */
    @TableField(value = "h5_state", condition = EQUAL)
    private Integer h5State;
    /**
     * 小程序启用状态;[0-禁用 1-启用]
     */
    @TableField(value = "mp_state", condition = EQUAL)
    private Integer mpState;



}
